<!DOCTYPE html>  
<html>
<head>  
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
<title>Hello, World</title>  
<style type="text/css">  
html{height:100%}  
body{height:100%;margin:0px;padding:0px}  
#container{height:100%}  
</style>  
<script type="text/javascript" src="http://api.map.baidu.com/api?v=3.0&ak=dAOEfi1nxSazMtKskodMox4e">
//v3.0版本的引用方式：src="http://api.map.baidu.com/api?v=3.0&ak=您的密钥"
</script>
</head>  
 
<body>  
<div id="container"></div> 

<script type="text/javascript"> 
var map = new BMap.Map("container");  
map.centerAndZoom(new BMap.Point(116.404, 39.915), 15);      
// 创建地址解析器实例     
var myGeo = new BMap.Geocoder()   
// 将地址解析结果显示在地图上，并调整地图视野    
myGeo.getPoint("北京科技职业学院(沙河校区)", function(point){      
  if (point) {      
    map.centerAndZoom(point, 16);      
    map.addOverlay(new BMap.Marker(point));      
  }      
 }, 
"北京市")
</script>  
</body>  
</html>